package com.fling.objects;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.math.Vector2;
import com.fling.Locator;
import com.fling.entity.CollisionEntity;

public class Block extends CollisionEntity{

    public static float SCALE=1f;
    public float SPEED=88f;
    
    public Block(Vector2 pos){
        super(pos,TYPE.BLOCK,BLOCK_PATH,false,true, SCALE);
        if(Locator.difficulty==Locator.EASY){
			this.setSprite(new Sprite(new Texture(Gdx.files.internal(BLOCK_EASY_PATH))));
		}
    }
    
    @Override
    public void update(float delta){
        super.update(delta);
        body.setLinearVelocity(0, -SPEED*Locator.getYGameSpeed()*Locator.getOverallGameSpeed() * delta);
    }
    
    @Override
    public void collide(CollisionEntity otherBody) {
        // TODO Auto-generated method stub
        
    }
    
    public void switchDifficulty(){
		
	}

}
